package com.weaver.qfengx.api.qihoo;

import com.weaver.qfengx.DaoUtils;
import com.weaver.qfengx.StringUtils;

/**
 * 文件扫描日志记录类
 */
public class FileScannerLog {

    public static void log(FileScannerConfig config, FileScannerLogEntity logEntity) {
        try {
            if (StringUtils.isNotEmpty(config.getLogTable())) {
                // 记录日志
                DaoUtils.saveBean(config.getLogTable(), logEntity);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
